<?php

namespace app\index\controller;

use app\api\controller\Jdycommon;
use app\common\controller\Frontend;
use PhpOffice\PhpSpreadsheet\Reader\Xls;
use PhpOffice\PhpSpreadsheet\Reader\Xlsx;
use think\Db;
use think\Exception;


//use PhpOffice\PhpSpreadsheet\Writer\Xlsx;


//大屏
class Home extends Frontend
{
    protected $layout = '';

    protected $noNeedRight = ['*'];
    protected $noNeedLogin = ['*'];

    public function _initialize()
    {
        parent::_initialize();
    }

    //http://dahui.test/index/home/kpgsyzm
    public function kpgsyzm() {

        $this->view->assign("title", "获取公司验证码");
        return $this->view->fetch();
    }

    //http://kp.51dljz.cn/admin/kpxt/kpinfo/add2
    //http://dahui.test/index/home/kp
    //http://kp.51dljz.cn/kp
    public function kp() {
        $url = "https://".$_SERVER['HTTP_HOST']."/admin/kpxt/kpinfo/add2";
//        echo $url;
        Header("Location:$url");
        exit();
    }

}
